<template>
	<view class="fcenter">
		<view class="left">
			<image :src="uavatar" mode="scaleToFill"></image>
		</view>
		<view class="right">
			<view class="t1">
				<text>{{uname}}</text>
				<uni-icons @click="shanchu" type="clear" size="25" color="red"></uni-icons>
			</view>
			<text>{{content1}}</text>
			<view>
				<image class="pic" v-for="item in pics" :src="item" mode="scaleToFill"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"friendcenter",
		props:{
			uavatar:{
				type:String,
				required:true
			},
			uname:{
				type:String,
				required:true
			},
			content1:{
				type:String,
				required:true
			},
			pics:{
				type:Array,
				required:true
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			shanchu(){
				this.$emit('delFri')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.fcenter{
		margin: $uni-spacing-col-lg*2 0px;
		padding: $uni-spacing-col-lg $uni-spacing-col-lg;
		>.left{
			margin-right: 15px;
			>image{
				width: 40px;
				height: 40px;
			}
		}
		>.right{
			flex-direction: column;
			>view{
				&.t1{
					align-items: center;
					justify-content: space-between;
				}
				>.pic{
					width: 88px;
					height: 88px;
					margin-right: $uni-spacing-row-base;
				}
				>text{
					font-size: $uni-font-size-title;
					color:$uni-color-primary;
					font-weight: 600;
				}
			}
			>text{
				color:$uni-color-warning;
				font-size: $uni-font-size-lg;
				margin-bottom: $uni-spacing-col-base;
			}
		}
	}
</style>